package com.intellagric.controller.portal.algorithm.arima;

import java.util.Vector;

public class AR {

    double[] stdoriginalData = {};
    int p;
    ARMAMath armamath = new ARMAMath();

    public AR(double[] stdoriginalData, int p) {
        this.stdoriginalData = stdoriginalData;
        this.p = p;
    }

    public Vector<double[]> ARmodel() {
        Vector<double[]> v = new Vector<double[]>();
        v.add(armamath.parcorrCompute(stdoriginalData, p, 0));
        return v;
    }

}
